home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 308 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: nautilpomp@aol.com (NautilPomp)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Can someone help me with objects and functions?
  5. Date: 3 Jan 1996 13:18:31 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4ceh9n$11k@newsbf02.news.aol.com>
  9. References: <DKM0M3.AoB@news.zippo.com>
  10. Reply-To: nautilpomp@aol.com (NautilPomp)
  11. NNTP-Posting-Host: newsbf02.mail.aol.com
  12.  
  13.      If you have problems, that you can't access object defined in main()
  14. from another function, than everything is ok, e.g. your object is local in
  15. main(). You either declare it as global, out of all fns, in the beginning
  16. of the source, or pass it as parameter to fn where you need to use it.
  17.                                                                           
  18.                    Sergey
  19.  
  20. ------ For those who don't like AOL:
  21.          Do not blame AOL for being bad and those who use it, but ask
  22. yourself: "May be             there is nothing else they can use?"
  23.                                                                       
  24. (Koz'ma Prutkov style)
  25.